package org.example.aidemo.config;

import org.example.aidemo.function.OrderAddFunction;
import org.example.aidemo.function.OrderDeleteFunction;
import org.example.aidemo.function.OrderModifyFunction;
import org.example.aidemo.function.OrderQueryFunction;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Description;

@Configuration
public class FunctionConfig {
    @Bean
    @Description("订单查询服务")
    public OrderQueryFunction orderQueryFunction() {
        return new OrderQueryFunction();
    }
    @Bean
    @Description("订单删除服务")
    public OrderDeleteFunction orderDeleteFunction() {
        return new OrderDeleteFunction();
    }
    @Bean
    @Description("订单信息修改服务")
    public OrderModifyFunction orderModifyFunction() {
        return new OrderModifyFunction();
    }
    @Bean
    @Description("订单新增或添加服务")
    public OrderAddFunction orderAddFunction() {
        return new OrderAddFunction();
    }
}